package com.lixiaoyi.emp.utils;

import com.lixiaoyi.emp.dao.IEmpDao;
import com.lixiaoyi.emp.dao.impl.EmpDaoImpl;
import com.lixiaoyi.emp.entity.Emp;
import com.lixiaoyi.emp.entity.Page;

import java.util.List;

/**
 * @Author 李小毅
 * @Description
 * @Date 2022-05-16
 */

public class Test {

    public static void main(String args[]){

        IEmpDao empDao = new EmpDaoImpl();
        Page page = new Page(1);
        List<Emp> empList = empDao.selectByPage(page);

        for (Emp emp : empList) {
            System.out.println(emp);
        }

    }
}
